package Com.amit.Exception;

public class Lab9 {

	public static void main(String[] args) {
		
		try
		{
			try
			{
				System.out.println("Going to devide");
				int a=100/0;
			}
			catch (ArithmeticException e) 
			{
			System.out.println(e);
			}
			
			try
			{
			int a[]=new int[5];
			a[5]=10;
			}
			
			catch (ArrayIndexOutOfBoundsException e) 
			{
				System.out.println(e);
			}
		}
		
		catch (Exception e) {
			
			System.out.println("Handled");
		
		}
		
		System.out.println("Rest of code");
		

	}

}
